import Vue from 'vue'
import App from './App.vue'
//引入vuex
import store from './store'
//把vuex定义成全局组件

//Vue.prototype.$serverUrl = 'http://192.168.1.100:1891'
//Vue.prototype.$serverUrl = 'http://192.168.1.215:1891'
Vue.prototype.$serverUrl = 'https://isalary.shenzhoutongbao.cn'
Vue.prototype.$store = store
Vue.config.productionTip = false

import cuCustom from './colorui/components/cu-custom.vue'
Vue.component('cu-custom',cuCustom)

//正则验证
Vue.prototype.idcardreg =   /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/
Vue.prototype.tell = /^1[3456789]\d{9}$/

// Vue.prototype.unique1 = function () {
// 	var res = [this[0]];
// 	for (var i = 1; i < this.length; i++) {
// 		var repeat = false;
// 		for (var j = 0; j < res.length; j++) {
// 			if (this[i]== res[j]) {
// 				repeat = true;
// 				break;
// 			}
// 		}
// 		if (!repeat) {
// 			res.push(this[i]);
// 		}
// 	}
// 	return res;
// }

App.mpType = 'app'
const app = new Vue({
    ...App,
    store
})
app.$mount()
